﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ContentHome.ascx.vb" Inherits="Control_WhatCookToDay_ContentHome" %>
<%@ Import Namespace="Cls_Common" %>
<script type="text/javascript">
    function SetIdLikeObject(cID, txtNumLike) {
        var isLogin = '<%= Session("UserId")%>';
        if (isLogin == null || isLogin.length <= 0) {
            $("#<%=lnkLoginModal.ClientId %>").click();
            return false;
        }
        else {
            $.ajax({
                type: "POST",
                url: '<%=ResolveUrl("~/Page/wsvProcess.asmx/LikeObject")%>',
                data: "{'oID': '" + cID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {

                    if (eval(msg.d) != 0) {
                        $("#" + txtNumLike).text(msg.d);
                    }
                    return false;

                },
                error: function () {
                    
                }
            });        
            return false;
        }
    }
    
</script>
 
    <div class="porlet_cuisine">
        <div class="bgtop_porlet_cuisine">&nbsp;</div>
            <div class="bgmid_porlet_cuisine">
                    <div class="rowtitle_porlet_cuisine">
                        <div class="celltitle_porlet_cuisine_L"></div>
                        <div class="celltitle_porlet_cuisine_M">
                                <div class="texttitle_porlet_cuisine">
                                        <asp:HyperLink ID="hplTitle" runat="server" CssClass="categoryLinkLage"></asp:HyperLink>
                                </div>
                        </div>
                        <div class="celltitle_porlet_cuisine_R"></div>
                    </div>
                    <div class="content_porlet_cuisine">
                        <div class="row_item_dishes">
                            <div class="cell_imagedishes"> <asp:HyperLink ID="hplImg" runat="server"></asp:HyperLink> </div>
                            <div class="cell_infodishes">
                                <p class="title_dishes"><asp:HyperLink ID="hplNewsTitle" runat="server" ></asp:HyperLink></p>
                                <p class="text_dishes">Chuẩn bị: <span>25phút</span></p>
                                <p class="desc_dishes"><asp:HyperLink ID="hplNewsDesc" runat="server" ></asp:HyperLink></p>
                                <p class="done_dishes">Các bài khác <img  src='<%=MainDomain & "FrontEnd/images/arrow_done.gif" %>' border="0" align="absmiddle"></p>
                            </div>
                            <div class="box_sub_infodishes">
                                    <asp:Repeater ID="rptMenuDayRelated" runat="server">
                                        <ItemTemplate>
                                            <div class="cell_subdishes">
                                                <div class="thum_imagsub">
                                                    <asp:HyperLink ID="hplImgNewsRelated" runat="server"></asp:HyperLink>
                                                    <div>
                                                        <%--<asp:HyperLink ID="hplplaySmall" runat="server" CssClass="playSmall"></asp:HyperLink>--%>
                                                    </div>
                                                </div>
                                                <p class="title_subdishes" >
                                                    <asp:HyperLink ID="hplTitle" runat="server" >
                                                  
                                                    </asp:HyperLink>
                                                </p>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>                                
                            </div>
                        </div>
                        

                    </div>


            </div>
        <div class="bgbottom_porlet_cuisine">&nbsp;</div>
    </div>


        
    <asp:Repeater ID="rptNewsHome" runat="server">
        <ItemTemplate>
<div class="porlet_cuisine">
    <div class="bgtop_porlet_cuisine">&nbsp;</div>
            <div class="bgmid_porlet_cuisine">
                

                        <!-- title porlet -->
                        <div class="rowtitle_porlet_cuisine">
                                <div class="celltitle_porlet_cuisine_L"></div>
                                <div class="celltitle_porlet_cuisine_M">
                                        <div class="texttitle_porlet_cuisine">
                                            <asp:HyperLink ID="hplTitle" runat="server" CssClass="categoryLinkLage"></asp:HyperLink>
                                            <asp:Label ID="lblSubItem" runat="server" Visible="false"></asp:Label>
                                        </div>
                                </div>
                                <div class="celltitle_porlet_cuisine_R"></div>
                        </div>

                            <!-- title porlet end-->
                
                <div class="content_porlet_cuisine">


            
                <asp:Repeater ID="rptNews" runat="server" OnItemDataBound="rptNews_ItemDataBound">
                    <ItemTemplate>
                       <div class="row_item_dishes">
                            <div class="cell_imagedishes"> <asp:HyperLink ID="hplImg" runat="server"></asp:HyperLink> </div>
                            <div class="cell_infodishes">
                                <p class="title_dishes"><asp:HyperLink ID="hplNewsTitle" runat="server" ></asp:HyperLink></p>
                                <p class="text_dishes">Chuẩn bị: <span>25phút</span></p>
                                <p class="desc_dishes"><asp:HyperLink ID="hplNewsDesc" runat="server" ></asp:HyperLink></p>
                                <p class="done_dishes">Các bài khác <img  src='<%=MainDomain & "FrontEnd/images/arrow_done.gif" %>' border="0" align="absmiddle"></p>
                            </div>
                            <div class="box_sub_infodishes">
                                     <asp:Repeater ID="rptNewsRelated" runat="server" OnItemDataBound="rptNewsRelated_ItemDataBound">
                                        <ItemTemplate>
                                            <div class="cell_subdishes">
                                                <div class="thum_imagsub">
                                                    <asp:HyperLink ID="hplImgNewsRelated" runat="server"></asp:HyperLink>
                                                    <div>
                                                        <%--<asp:HyperLink ID="hplplaySmall" runat="server" CssClass="playSmall"></asp:HyperLink>--%>
                                                    </div>
                                                </div>
                                                <p class="title_subdishes" >
                                                    <asp:HyperLink ID="hplTitle" runat="server" >
                                                  
                                                    </asp:HyperLink>
                                                </p>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>                                
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="bgbottom_porlet_cuisine">&nbsp;</div>
        </div>
     <div class="bgbottom_porlet_cuisine">&nbsp;</div>
</div>

        </ItemTemplate>
    </asp:Repeater>


<div style="display: none">
    <asp:HyperLink ID="lnkLoginModal" runat="server"  CssClass ="thickbox" Text="doan du"></asp:HyperLink>
    <asp:HiddenField ID = "hidMenuId" Value="0" runat="server" />
</div>
